<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div></div>
</body>
<script>
    // const div = document.createElement('div');
    // div.innerHTML =
    // document.body.appendChild(div);
    // document.forms[0].submit();
    var form = [[$form]];
    console.log(form);
</script>
</html>